package yl.hs.bmipfull.pojo.system;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBTable;

import java.util.Date;

/**
 * @author hsxx
 */
@DBTable(disName = "用户登录信息", mapCode = "user_login")
public class UserLoginEntity {
    @Nullable

    private Long id;
    private String userSN;
    private String userPWD;
    private String secretKey;
    @Nullable
    private Date previousVisitTime;
    @Nullable
    private Date lastVisitTime;
    private String question;
    private String answer;

    public UserLoginEntity() {
        this.secretKey = "";
        this.lastVisitTime = new Date();
        this.previousVisitTime = new Date();
    }

    /**
     * 获取主键
     *
     * @return
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置主键
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户编号
     *
     * @return
     */
    public String getUserSN() {
        return this.userSN;
    }

    /**
     * 设置用户编号
     *
     * @param userSN
     */
    public void setUserSN(String userSN) {
        this.userSN = userSN;
    }

    /**
     * 获取用户密码
     *
     * @return
     */
    public String getUserPWD() {
        return userPWD;
    }

    /**
     * 设置用户密码
     *
     * @param userPWD
     */
    public void setUserPWD(String userPWD) {
        this.userPWD = userPWD;
    }

    /**
     * 获取用户密钥
     *
     * @return
     */
    public String getSecretKey() {
        return this.secretKey;
    }

    /**
     * 设置用户密钥
     *
     * @param secretKey
     */
    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    /**
     * 获取上次登录时间
     *
     * @return
     */
    public Date getPreviousVisitTime() {
        return this.previousVisitTime;
    }

    /**
     * 设置上次登录时间
     *
     * @param previousVisitTime
     */
    public void setPreviousVisitTime(Date previousVisitTime) {
        this.previousVisitTime = previousVisitTime;
    }

    /**
     * 获取最后一次登录时间
     *
     * @return
     */
    public Date getLastVisitTime() {
        return this.lastVisitTime;
    }

    /**
     * 设置最后一次登录时间
     *
     * @param lastVisitTime
     */
    public void setLastVisitTime(Date lastVisitTime) {
        this.lastVisitTime = lastVisitTime;
    }

    /**
     * 获取安全问题
     *
     * @return
     */
    public String getQuestion() {
        return this.question;
    }

    /**
     * 设置安全问题
     *
     * @param question
     */
    public void setQuestion(String question) {
        this.question = question;
    }

    /**
     * 获取安全问题答案
     *
     * @return
     */
    public String getAnswer() {
        return this.answer;
    }

    /**
     * 设置安全问题答案
     *
     * @param answer
     */
    public void setAnswer(String answer) {
        this.answer = answer;
    }
}
